libxl: add few more memory operations
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 22 Sep 2010 16:39:32 +0000 (17:39 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 22 Sep 2010 16:39:32 +0000 (17:39 +0100)
commit7010e9b7e4908ccf3c22f8f12722776b012d12e0
treeed3379abcd6992735a3e14e0e19f56c2498b7d2f
parent038955aa3b5be0dc4c2577b1081a66f82af54a61
libxl: add few more memory operations

libxl_domain_need_memory: calculate how much memory a domain needs in
order to be built and start correctly.

libxl_get_free_memory: calculate the total free memory in the system.

libxl_wait_for_free_memory: wait for a certain amount of memory to
become free in the system.

libxl_wait_for_memory_target: wait for a domain to reach its memory
target.

[fixed up for conflicts with libxl__ naming policy changes -iwj]

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/libxl_internal.h